import my_requests from "@/plugins/request";

/**
 * 查询全部Users信息
 */
export function getUsersInfo(queryData){
    return my_requests({
        url: '/userInfo',
        method: 'get',
        params:queryData
    })
}

/**
 * 查询单个Users信息
 */
export function getUsersInfoById(Id){
    return my_requests({
        url: '/userInfo/'+Id,
        method: 'get',
    })
}

/**
 * 根据用户名查询单个Users信息
 */
export function getUsersInfoByUserName(userName){
    return my_requests({
        url: '/userInfo/queryByUserName/'+userName,
        method: 'get',
    })
}

/**
 * 根据用户名查询单个Users信息,不要返回密码
 */
export function getUsersInfoByUserNameNoPassword(userName){
    return my_requests({
        url: '/userInfo/queryByUserNameNoPassword/'+userName,
        method: 'get',
    })
}


/**
 * 新增Users信息
 */
export function addUsersInfo(data){
    return my_requests({
        url: '/userInfo',
        method: 'post',
        data:data
    })
}


/**
 * 修改Users信息
 */
export function modifyUsersInfo(data){
    return my_requests({
        url: '/userInfo',
        method: 'put',
        data:data
    })
}


/**
 * 删除Users信息
 */
export function deleteUsersInfo(id){
    return my_requests({
        url: '/toolsUsers/'+id,
        method: 'delete',
    })
}

/**
 * 批量删除Users信息
 */
export function deleteUsersInfoBatch(idArr){
    return my_requests({
        url: '/toolsUsers/deleteBatch',
        method: 'post',
        data:idArr
    })
}



